﻿@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_JuiLayout.cshtml";

    Dictionary<string, object> dic_M = Model;
    Dictionary<string, object> dic_class = CommonBLL.GetModel("Sys_IBClasses", "*", Model["ClassId"]);
    
}
@section header {}
<div id="layout" class="noNavTab">
    <div id="navTab">
        <h2 class="contentTitle">
            修改数据字典项</h2>
        <div class="pageContent">
            <div class="pageFormContent nowrap" layouth="56">
                @{
                    int id = Utils.StrToInt(ViewData["id"], 0);
                    string rturl = "/SysMenu/List?menu=SysIBDDs&name=list&hostId=" + dic_M["ClassId"] + "&pid=" + dic_M["PId"];
                    using (Html.BeginForm("Edit", "OperateTotal", new { id = id, dtnum = (int)Database.Default, name = DencryptHelper.Encrypt("Sys_IBDD"), url = rturl }, FormMethod.Post, new { @id = "subForm", @class = "pageForm required-validate", onsubmit = "return validateCallback(this,navTabAjaxDone)" }))
                    { 
                    <dl>
                        <dt>编码：</dt>
                        <dd>
                            @Html.TextBox("t0_No", dic_M["No"], new { @class = " textInput", maxlength = "25" })
                        </dd>
                    </dl>
                    <dl>
                        <dt>名称：</dt>
                        <dd>
                            @Html.TextBox("t0_Name", dic_M["Name"], new { @class = "required textInput", maxlength = "25" })
                        </dd>
                    </dl>
                    <dl>
                        <dt>描述：</dt>
                        <dd>
                            @Html.TextArea("t0_Description", dic_M["Description"].ToString(), new { @class = " textInput", rows = "5", cols = "80", maxlength = "250" })
                        </dd>
                    </dl>
                    <dl>
                        <dt>序号：</dt>
                        <dd>
                            @Html.TextBox("t0_SortOrder", dic_M["SortOrder"], new { @class = "required textInput digits", maxlength = "25" })
                        </dd>
                    </dl>
                    <dl>
                        <dt>@dic_class["ValueName1"]：</dt>
                        <dd>
                            @Html.TextArea("t0_Value1", dic_M["Value1"].ToString(), new { @class = " textInput", rows = "5", cols = "80", maxlength = "100" })
                        </dd>
                    </dl>
                    <dl>
                        <dt>@dic_class["ValueName2"]：</dt>
                        <dd>
                            @Html.TextArea("t0_Value2", dic_M["Value2"].ToString(), new { @class = " textInput", rows = "5", cols = "80", maxlength = "100" })
                        </dd>
                    </dl>
                    <dl>
                        <dt>@dic_class["ValueName3"]：</dt>
                        <dd>
                            @Html.TextArea("t0_Value3", dic_M["Value3"].ToString(), new { @class = " textInput", rows = "5", cols = "80", maxlength = "100" })
                        </dd>
                    </dl>
                    <dl>
                        <dt>@dic_class["ValueName4"]：</dt>
                        <dd>
                            @Html.TextArea("t0_Value4", dic_M["Value4"].ToString(), new { @class = " textInput", rows = "5", cols = "80", maxlength = "100" })
                        </dd>
                    </dl>
                    <dl>
                        <dt>&nbsp</dt>
                        <dd>
                            <div class="buttonActive">
                                <div class="buttonContent">
                                    <button type="submit">
                                        修改</button></div>
                            </div>
                        </dd>
                        <dd>
                            <a class="button" href='@rturl'><span>返回</span></a></dd>
                    </dl>
                        
                    } 
                }
            </div>
        </div>
    </div>
</div>

<link href="../../content/jui-normal.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/Scripts/pager.js"></script>
<script type="text/javascript">
</script>